package org.gd.hellospring.scheduling;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-10-29 13:37
 */
@Component
@EnableScheduling
class Obj {

    @Scheduled(fixedRate = 2000)
    void print() {
        System.out.println("print");
    }
}
